<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html>
<html lang="zh-cmn-Hans" class="wide wow-animation smoothscroll scrollTo">
  <head>
    <?php include template("layouts","header"); ?>
  </head>
  <body>
    <!-- Page-->
    <div class="page text-center">
      <!-- Page Header-->
      <header class="page-head">
        <?php include template("layouts","navbar"); ?>
      </header>
      <?php include template("layouts","breadcrumb"); ?>

      <!-- Page Content-->
      <main class="page-content">
        <!-- Masonry Blog-->
        <!-- <div id="fb-root"></div> -->
        <section class="section-98 section-sm-110">
          <div class="shell">
            <div class="range range-xs-center">
              <div class="cell-md-10 cell-lg-8">
                <div data-type="horizontal" class="responsive-tabs responsive-tabs-classic">
                  <ul class="resp-tabs-list text-center tabs-group-default">
                    <?php $n=1;if(is_array(subcat($CAT['parentid']))) foreach(subcat($CAT['parentid']) AS $r) { ?>
                    <li <?php if(($catid==$r['catid'])) { ?>class="resp-tab-active"<?php } ?>>
                      <a href="<?php echo $r['url'];?>"><?php echo $r['catname'];?></a>
                    </li>
                    <?php $n++;}unset($n); ?>
                  </ul>
                </div>
                <!-- photo grid -->
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=29d71aafde4199c0260cac6aed07fa9f&action=lists&catid=%24catid&num=9&siteid=%24siteid&order=listorder+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 9;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'listorder DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'listorder DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
                <div class="range offset-top-0">
                  <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                  <div class="cell-xs-8 cell-sm-7 cell-md-4 offset-top-30">
                    <figure class="thumbnail-josip odd"><a href="<?php echo $r['url'];?>">
                      <img width="270" height="270" src="<?php echo $r['thumb'];?>" alt=""/></a>
                      <div class="thumbnail-desc">
                        <h5 class="thumbnail-josip-title text-bold text-white"><?php echo $r['title'];?></h5>
                        <p class="veil reveal-md-block text-italic text-white offset-top-0"><?php echo $r['description'];?></p>
                      </div>
                      <figcaption><a href="<?php echo $r['url'];?>" class="btn btn-block btn-rect text-md-left btn-java">查看详细</a></figcaption>
                    </figure>
                  </div>
                  <?php $n++;}unset($n); ?>
                </div>
                <div class="offset-top-20 text-center">
                  <hr class="text-subline">
                  <?php echo $pages;?>
                </div>
                <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
              </div>
              <!-- aside bar -->
              <div class="cell-sm-10 cell-md-8 cell-lg-4 offset-top-66 offset-md-top-90 offset-lg-top-0">
                <div class="blog-grid-sidebar inset-lg-left-30">
                  <!-- Aside-->
                  <aside class="text-left">
                    <!-- Search in Blog-->
                    <div>
                      <?php include template("layouts","c_search"); ?>
                    </div>
                    <!-- keywords-->
                    <div class="offset-top-30 offset-md-top-60">
                      <?php include template("layouts","keyword"); ?>
                    </div>
                    <div class="offset-top-30 offset-md-top-60">
                      <?php include template("layouts","hits"); ?>
                    </div>
                  </aside>
                </div>
              </div>
            </div>
          </div>
        </section>
      </main>
      <?php include template("layouts","footer"); ?>
    </div>
    <?php include template("layouts","global"); ?>
    <?php include template("layouts","javascript"); ?>

  </body>
</html>
